<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:U('Advertise/index')}"> 品牌列表 </a></li>
        <li ><a href="{:U('Advertise/add')}"> 添加品牌 </a></li>
    </ul>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th width="50">ID</th>
            <th> 标题 </th>
            <th> 图片 </th>
            <th> 描述 </th>
            <th> 状态 </th>
            <th width="200">操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo['ad_name']}</td>
                <td><img style="height: 40px;" src="{$vo['path']}" alt=""> </td>
                <td>
                    {$vo['ad_content']}
                </td>
                <td>{$vo.state}</td>
                <td>
                    <a href="{:U('Advertise/edit',array('id'=>$vo['id']))}">编辑</a> |
                    <a href="{:U('Advertise/delete',array('id'=>$vo['id']))}">删除</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>